﻿using EyFramework.Sys.Core.Dao;
using EyFramework.Sys.Entity;
using System;
using System.Collections.Generic;
using System.Linq;

namespace EyFramework.Sys.Core.Service
{
    public class SysDictDataService : BaseHisService, ISysDictDataService
    {
        protected ISysDictDataDao _sysDictDataDao;

        public SysDictDataService(ISysDictDataDao sysDictDataDao)
        {
            _sysDictDataDao = sysDictDataDao;
        }

        public List<SysDictData> GetAllDicts(bool isIncludeDc)
        {
            return _sysDictDataDao.GetList().OrderBy(p => p.DICT_SORT).ToList(); ;
        }
    }
}